package com.syh.feignapi.clients;

import com.syh.bscommon.pojo.Result;
import com.syh.bscommon.pojo.Transactions;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author syh 86187
 * @date 2024/7/16
 * com.syh.feignapi.clients
 * @description
 */
@FeignClient(value = "bill-service")//指定调用哪个服务
public interface BillClient {
    @PostMapping("/bill/addBill_success")
    Result addBill_success(@RequestBody Transactions transactions);

    @PostMapping("/bill/addBill_cansel")
    Result addBill_cansel(@RequestBody Transactions transactions);
}
